package team.scau.laboratory_repair.common.activiti.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.activiti.engine.repository.ProcessDefinition;

/**
 * @author 30254
 * creadtedate:2018/10/13
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class ProcDefDto {
    private String id;
    private String name;
    private String key;
    private Integer version;

    public ProcDefDto(ProcessDefinition definition){
        id = definition.getId();
        name = definition.getName();
        key = definition.getKey();
        version = definition.getVersion();
    }

}
